﻿﻿using System;
using System.Collections.Generic;
using System.Web;
namespace WebMvc.App.Models.Tips.Common
{
    public class sms_parameter
    {
		public string id=null;
		public string name=null;
		public string type=null;
		public string length=null;
		public string note=null;
		public string template_id=null;
        public string __name__;
        public sms_parameter(string name)
        {
            this.__name__ = name;
			this.id = string.Format("{0}.id",__name__);
			this.name = string.Format("{0}.name",__name__);
			this.type = string.Format("{0}.type",__name__);
			this.length = string.Format("{0}.length",__name__);
			this.note = string.Format("{0}.note",__name__);
			this.template_id = string.Format("{0}.template_id",__name__);
        }
        public sms_parameter()
        {
			this.id = string.Format("{0}.id",__name__);
			this.name = string.Format("{0}.name",__name__);
			this.type = string.Format("{0}.type",__name__);
			this.length = string.Format("{0}.length",__name__);
			this.note = string.Format("{0}.note",__name__);
			this.template_id = string.Format("{0}.template_id",__name__);
        }
        public override string ToString()
        {
            if (__name__ == null)
            {
                return "sms_parameter";
            }
            else
            {
                return string.Format("sms_parameter as {0}",__name__);
            }
        }
    }
}